package com.service.impl;

import com.dao.IMyuser;
import com.model.MyUser;
import com.service.MyuserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MyuserServicelmpl implements MyuserService {

    @Autowired
    private IMyuser iMyuser;

    @Override
    public int addMyUser(MyUser myUser){
        return iMyuser.insertMyUser(myUser);
    }

    @Override
    public MyUser getUser(int userid){
        return iMyuser.getMyuser(userid);
    }

    @Override
    public int updeteMyuser(MyUser myUser) {
        return iMyuser.updateMyuser(myUser);
    }

    @Override
    public int deleteMyUser(int userid){
        return iMyuser.delteMyuser(userid);
    }
}
